package com.yyk.dzvisit.enums;

import com.yyk.dzvisit.core.aop.IError;

/**
 * @Author: ligui
 * @Date: 2020/9/28 21:46
 */
public enum SpecialError implements IError {
    USER_LOGIN_STATUS_ERROR(1401, "用户登录状态异常"),
    USER_LOGIN_STATUS_ERROR_NOTIFY(1402, "用户登录状态异常"),
    DEVICE_ERROR(1500, "应用异常");

    private int baseCode;
    private String desc;

    private SpecialError() {
    }

    private SpecialError(int baseCode, String desc) {
        this.baseCode = baseCode;
        this.desc = desc;
    }

    @Override
    public int getLayerNum() {
        return 0;
    }

    @Override
    public int getCode() {
        return this.baseCode;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }
}
